package com.zxn.dragdemo.bean;

//import com.chad.library.adapter.base.entity.MultiItemEntity;
//import com.zxn.segmentcontrol.ISegmentInfo;

/**
 * Created by zxn on 2019/9/4.
 */
public class CategoryInfo /*implements ISegmentInfo, MultiItemEntity*/ {


    public static final int TYPE_CATEGORY_INFO = 0;
    public static final int TYPE_CATEGORY_ADD = 1;
    public static final int TYPE_MATERIAL_INFO = 2;//goodsMaterial

    //额外字段
    public int itemType = TYPE_CATEGORY_INFO;
    //额外字段:
    public boolean isChecked = true;
    /**
     * categoryId : 15
     * categoryName : 水果
     * categoryDesc : 热销水果产品
     * categoryStatus : 1
     * categoryType : 0
     * categorySort : 1
     * children : [{"categoryId":17,"categoryName":"香蕉","categoryDesc":"热销香蕉产品","categoryStatus":1,"categoryType":0,"categorySort":1,"parentCategoryId":15}]
     */

    public long categoryId;
    public String merchantCode;
    public String categoryName;
    public String categoryDesc;
    public int categoryStatus;
    public int categoryType;
    public int categorySort;
//    public List<CategoryChildrenInfo> children;
    public CategoryInfo() {
    }

    public CategoryInfo(int itemType) {
        this.itemType = itemType;
    }

//    @Override
//    public String getSegmentName() {
//        return categoryName;
//    }
//
//    @Override
//    public int getItemType() {
//        return itemType;
//    }
}
